<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
class Index extends Controller
{
    public function index()
    {
    	$data=Db::table('activity')->where('ActID',1)->select();
    	// var_dump($data);
    	$this->assign('zhu',$data['0']);
        return $this->fetch();
    }
    public function aa()
    {
    	$data=db('activity')->select();
    	// var_dump($data);
    	$this->assign('zz',$data);
    	   	return $this->fetch('aa');
    }
}
